{extend name="admin@public/base" /}
{block name="main-content"}
<div class="page-content">
    <link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/sldate/daterangepicker-bs3.css"/>
    <form name="" class="" id="list-filter" method="post" action="{:url('admin/Sysbug/bug_list')}">
        <div class="row">
            <div class="col-xs-12 col-sm-12 maintop">
                <select name="admin_id" class="ajax_change" id="select-2">
                    <option value="">提出人员</option>
                    {foreach admin_list as $k=>$v}
                    <option value="{$v['admin_id']}">{$v['admin_realname']}</option>
                    {/foreach}
                </select>
            </div>

            <div class="col-xs-11 col-sm-3 hidden-xs btn-sespan">
                <div class="input-group">
										<span class="input-group-addon">
											<i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
										</span>
                    <input type="text" name="reservation" id="reservation" class="sl-date" value=""
                           placeholder="点击选择日期范围"/>
                </div>
            </div>

            <div class="col-xs-10 col-sm-5 btn-sespan chaxun1">
                <div class="input-group">
									<span class="input-group-addon">
										<i class="ace-icon fa fa-check"></i>
									</span>
                    <input type="text" name="key" id="key" class="form-control search-query admin_sea" value="" placeholder="输入需查询的问题标题、支持模糊查询"/>
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-xs btm-input btn-purple ajax-search-form">
                            <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                            搜索
                        </button>
					</span>
                </div>
            </div>
        </div>
    </form>
    <div class="row">
        <div class="col-xs-12">
            <div>
                <form id="alldel" name="alldel" method="post" action="{:url('admin/Task/issue_list')}" >
                    <div class="table-responsive">
                        <table id="issueTable" class="table table-striped table-bordered table-hover ">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>问题标题</th>
                                <th>用户名/姓名</th>
                                <th>提交时间</th>
                            </tr>
                            </thead>
                            <tbody id="ajax-data">
                            {include file="sysbug/ajax_bug_list"/}
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div><!-- /.page-content -->
{/block}
{block name="scripts"}
<script type="text/javascript" src="__PUBLIC__/sldate/moment.js"></script>
<script type="text/javascript" src="__PUBLIC__/sldate/daterangepicker.js"></script>
<script type="text/javascript">
    $('#reservation').daterangepicker(null, function (start, end, label) {
        console.log(start.toISOString(), end.toISOString(), label);
    });
    $("#select-2").select2({
        placeholder: "提出人员",
        allowClear:true,
    });
    $(".select2-selection__clear").html('');
    $.fn.modal.Constructor.prototype.enforceFocus = function() {}; //重新获取焦点
</script>
{/block}